package cn.jy.ad.mapper;

import cn.jy.common.ad.domain.ExpressSplitAdvertising;
import cn.jy.common.ad.domain.dto.ExpressSplitAdvertisingDto;
import cn.jy.common.ad.domain.vo.ExpressSplitAdvertisingVo;
import org.apache.ibatis.annotations.Select;

import java.util.Date;
import java.util.List;

/**
* @author lenovo
* @description 针对表【express_split_advertising】的数据库操作Mapper
* @createDate 2024-08-29 18:17:41
* @Entity cn.jy.common.ad.domain.ExpressSplitAdvertising
*/
public interface ExpressSplitAdvertisingMapper {

    List<ExpressSplitAdvertisingDto> list(ExpressSplitAdvertisingVo vo);

    Integer count(ExpressSplitAdvertisingVo vo);

    void addSplitAdvertising(ExpressSplitAdvertising splitAdvertising);

    @Select("select * from express_split_advertising where id=#{id}")
    ExpressSplitAdvertising selectSplidAdById(Integer id);

    void updateSplitAd(ExpressSplitAdvertising splitAdvertising);

    ExpressSplitAdvertising selectSplidAdBySn(String sn);

    List<ExpressSplitAdvertising> selectExpiredAds(Date currentTime);
}




